package com.itheima.mapper;

import com.itheima.pojo.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 33582
* @description 针对表【t_student】的数据库操作Mapper
* @createDate 2024-11-12 09:18:21
* @Entity com.itheima.pojo.Student
*/
public interface StudentMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Student record);

    int insertSelective(Student record);

    Student selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    List<Student> selectByConditions(@Param("sname") String sname, @Param("major") String major);

    List<Student> selectByIdLessThan(@Param("id") int id);
}
